package com.glela.platform.mapper;

import org.apache.ibatis.annotations.Param;

import com.glela.common.BaseSqlMapper;
import com.glela.platform.model.RedeemCode;

/**
 * 
 * @author 卫耀华
 *
 */
public interface RedeemCodeMapper extends BaseSqlMapper<RedeemCode> {

	/**
	 * 查询兑换码详情，根据兑换码查询
	 * 
	 * @param redeemCode
	 * @return
	 */
	public RedeemCode selectRedeemCodeByRedeemCode(@Param("redeemCode") String redeemCode);

	/**
	 * 修改兑换码已用次数
	 * 
	 * @param id
	 * @param usedTimes
	 * @return
	 */
	public void updateRedeemCodeUsedTimesById(@Param("id") int id, @Param("usedTimes") int usedTimes);
}
